          
          
         
          //var originalWidth = consultWidth = window.innerWidth;
          //var linkJumpCount = 16;
          var linkHref;
          var beginningDelay = null;
          var animateDelayCount = 4000;
          var watchBrowse = null;
          function countDown(){
                linkJumpCount -= 1;
               
                //linkJumpCount=0时，跳转页面
                if(linkJumpCount <= 0){
                    location.href = linkHref;
                }

                //每秒执行一次,showTime()
                setTimeout("countDown()",100);
            }
            //禁止滚动
            function onMouseScroll(event) {
                    event.preventDefault();
                    var wheel = e.originalEvent.wheelDelta || -e.originalEvent.detail;
                    var delta = Math.max(-1, Math.min(1, wheel) );
                    if(delta < 0){//向下滚动
                        scrollDown = true;
                    }else{//向上滚动
                        scrollDown = false;
                    }
            }
            //内容高度是否小于屏幕高度
            function checkContnHeight(){
                if($('.container')[0].offsetHeight < window.innerHeight){
                    $('.container').addClass('fillAll');
                }
            }
            //前进后退页面处于顶部
            function beginningAtTop(){
                setTimeout(function(){
                    document.documentElement.scrollTop = document.body.scrollTop = 0;
                },10)
            }

            //判断是否为移动设备
            function browserRedirect(){
                var sUserAgent = navigator.userAgent.toLowerCase();
                var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
                var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
                var bIsMidp = sUserAgent.match(/midp/i) == "midp";
                var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
                var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
                var bIsAndroid = sUserAgent.match(/android/i) == "android";
                var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
                var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
                if (bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) {
                    $('body').addClass('mobileDevice');
                    return true;
                }else{
                    return false;
                }
            }
            
            $(document).ready(function(){
                    browserRedirect(); 
                    setTimeout(checkContnHeight,10);
                    $('.ada>*:first-child').addClass('active');

                    $('header .menu ul li.f').mouseenter(function(){
                        var left = Math.abs($(this)[0].offsetWidth - $(this).find('.sonMenu')[0].offsetWidth) / 2;
                        var innerH = $(this).find('.inner')[0].offsetHeight;
                        console.log(left);
                        $(this).find('.sonMenu')[0].style.cssText = 'margin-left:-' + left + 'px;height:' + innerH + 'px;';
                    })
                    $('header .menu ul li.f').mouseleave(function(){
                        $(this).find('.sonMenu').height(0);
                    })
                    $('header .menu .menuBtn').click(function(){
                        if($(this).parent()[0].className.indexOf('flip') >= 0){
                            $(this).parent().removeClass('flip');
                        }else{
                            $(this).parent().addClass('flip');
                        }
                    })

                    $('header .menu .mobileMenu .content li>a').click(function(e){
                            if($(this).siblings('.sonMenu').length){
                                if($(this).siblings('.sonMenu').height() != 0){
                                    $(this).siblings('.sonMenu').height(0);
                                }
                                e = e || window.event;
                                e.cancelBubble = true;
                                e.stopPropagation();
                                if(e.preventDefault){ // w3c
                                    e.preventDefault();
                                } else { // ie
                                    e.returnValue = false;
                                }
                            }
                    })
                    var linkNow = window.location.href;
                    for(var n = 0;n < $('header .menu nav ul li>a').length;n++){
                        var href = $('header .menu nav ul li>a').eq(n).attr('href');
                        if(linkNow.indexOf(href) >= 0){
                            $('header .menu nav ul li>a').eq(n).addClass('active');
                            break;
                        }
                    }
                    
            })

            //$(document).on('mousewheel DOMMouseScroll', onMouseScroll);
            

        